<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>test page</title>
    <script th:inline="javascript">
        var username = [[${username}]];
        console.log(username)
    </script>
</head>
<body>
<h2>I'm page 1</h2>
<table border="1">
    <tr>
        <td>编号</td>
        <td>用户名</td>
        <td>地址</td>
        <td>注册时间</td>
    </tr>
    <tr th:each="user : ${users}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.address}"></td>
        <td th:text="${user.addTime}"></td>
    </tr>
</table>
</body>
</html>